package com.ylr.basic.framework.controller.web;

import java.util.Map;

import com.ylr.basic.framework.entity.RequestLogEntity;
import com.ylr.basic.framework.service.RequestLogService;
import com.ylr.base.common.tool.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-04-28 22:24:10
 * className: RequestLogWebController web端请求日志接口类
 * version: 1.0
 * description:
 */
@RestController
@RequestMapping("/web/request-log")
public class RequestLogWebController {

    private static final Logger log = LoggerFactory.getLogger(RequestLogWebController.class);

    @Resource(name = "requestLogService")
    private RequestLogService requestLogService;

    /**
     * 保存
     */
    @RequestMapping("/save")
    public Result<Object> save(@RequestBody RequestLogEntity requestLog) {
//        requestLogService.save(requestLog);

        return Result.success();
    }

    /**
     * 列表
     */
    @RequestMapping("/list")
    public Result<Object> list(@RequestParam Map<String, Object> params) {
//        PageUtils page = requestLogService.queryPage(params);

        return Result.success();
    }


    /**
     * 信息
     */
    @RequestMapping("/info/{id}")
    public Result<Object> info(@PathVariable("id") Long id){
//		RequestLogEntity requestLog = requestLogService.getById(id);

        return Result.success();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public Result<Object> update(@RequestBody RequestLogEntity requestLog){
//		requestLogService.updateById(requestLog);

        return Result.success();
    }

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public Result<Object> delete(@RequestBody Long[] ids){
//		requestLogService.removeByIds(Arrays.asList(ids));

        return Result.success();
    }

}
